$(function () {
    // 请求    英雄列表数据
    $.ajax({
        url: "http://127.0.0.1:8000/api/getHeroSkin",
        method: "get",
        success(res) {
            console.log(7, res);
            let list = res.data;
            let _tr = `<tr>
            <th>id</th>
            <th>姓名</th>
            <th>皮肤</th>
        </tr>`;
            list.forEach(item => {
                _tr += `
                    <tr>
                    <td>${item.id}</td>
                    <td>${item.cname}</td>
                    <td>${item.skin_name}</td>
                </tr>
                `
            });
            $("#myTable").html(_tr);
        }
    })
})